\hypertarget{classduye_1_1_i_pv4_addr}{\section{duye\-:\-:I\-Pv4\-Addr Class Reference}
\label{classduye_1_1_i_pv4_addr}\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}}
}


I\-Pv4 address.  




{\ttfamily \#include $<$duye\-\_\-socket.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classduye_1_1_i_pv4_addr_acd962f8d46b52e8f64d15b077b1516f2}{I\-Pv4\-Addr} ()
\begin{DoxyCompactList}\small\item\em auto get local address, and rand setting a port \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_i_pv4_addr_a7d377ea655353d6d5ea5c864c3adf342}{{\bfseries I\-Pv4\-Addr} (const uint32 ip, const uint16 port=0)}\label{classduye_1_1_i_pv4_addr_a7d377ea655353d6d5ea5c864c3adf342}

\item 
void \hyperlink{classduye_1_1_i_pv4_addr_a58e14639d717cd8179aa7083639c70bc}{set\-Ip} (const uint32 ip)
\begin{DoxyCompactList}\small\item\em set/get I\-P address \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_i_pv4_addr_a78fe7c8ecb7f7d4ab2415090f1dba07a}{uint32 {\bfseries ip} ()}\label{classduye_1_1_i_pv4_addr_a78fe7c8ecb7f7d4ab2415090f1dba07a}

\item 
\hypertarget{classduye_1_1_i_pv4_addr_acb68e8b18129d760ffa4a1cdfe5b02de}{const uint32 {\bfseries ip} () const }\label{classduye_1_1_i_pv4_addr_acb68e8b18129d760ffa4a1cdfe5b02de}

\item 
\hypertarget{classduye_1_1_i_pv4_addr_a9b47b89d1362652205b8a3caef50c1c1}{uint8 $\ast$ {\bfseries ip\-Str} ()}\label{classduye_1_1_i_pv4_addr_a9b47b89d1362652205b8a3caef50c1c1}

\item 
\hypertarget{classduye_1_1_i_pv4_addr_a30d847cbe35b70d69349abbf503640d3}{const uint8 $\ast$ {\bfseries ip\-Str} () const }\label{classduye_1_1_i_pv4_addr_a30d847cbe35b70d69349abbf503640d3}

\item 
void \hyperlink{classduye_1_1_i_pv4_addr_a00163ce7439478b71df415ecc10b0821}{set\-Port} (const uint16 port)
\begin{DoxyCompactList}\small\item\em set/get port \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_i_pv4_addr_aab6f14d1eff8f308a56bbe8fb632e7bf}{uint16 {\bfseries port} ()}\label{classduye_1_1_i_pv4_addr_aab6f14d1eff8f308a56bbe8fb632e7bf}

\item 
\hypertarget{classduye_1_1_i_pv4_addr_a7b25ae9dbcf1b21337855313d6702ece}{const uint16 {\bfseries port} () const }\label{classduye_1_1_i_pv4_addr_a7b25ae9dbcf1b21337855313d6702ece}

\item 
sockaddr\-\_\-in \& \hyperlink{classduye_1_1_i_pv4_addr_ab99e8b05d31fb9607416015cf81f999b}{addr} ()
\begin{DoxyCompactList}\small\item\em set/get sock addr \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_i_pv4_addr_af6f1fd45e5909670998d1664ae410c0b}{const sockaddr\-\_\-in \& {\bfseries addr} () const }\label{classduye_1_1_i_pv4_addr_af6f1fd45e5909670998d1664ae410c0b}

\item 
uint16 \hyperlink{classduye_1_1_i_pv4_addr_a77b7729840bb165523424441200e39a4}{addr\-Len} () const 
\begin{DoxyCompactList}\small\item\em get sock address length \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
I\-Pv4 address. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classduye_1_1_i_pv4_addr_acd962f8d46b52e8f64d15b077b1516f2}{\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}!I\-Pv4\-Addr@{I\-Pv4\-Addr}}
\index{I\-Pv4\-Addr@{I\-Pv4\-Addr}!duye::IPv4Addr@{duye\-::\-I\-Pv4\-Addr}}
\subsubsection[{I\-Pv4\-Addr}]{\setlength{\rightskip}{0pt plus 5cm}duye\-::\-I\-Pv4\-Addr\-::\-I\-Pv4\-Addr (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_i_pv4_addr_acd962f8d46b52e8f64d15b077b1516f2}


auto get local address, and rand setting a port 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em ip} & \-: ip address \\
\hline
\mbox{\tt in}  & {\em port} & \-: port, default is 0, will random generate \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_i_pv4_addr_ab99e8b05d31fb9607416015cf81f999b}{\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}!addr@{addr}}
\index{addr@{addr}!duye::IPv4Addr@{duye\-::\-I\-Pv4\-Addr}}
\subsubsection[{addr}]{\setlength{\rightskip}{0pt plus 5cm}sockaddr\-\_\-in\& duye\-::\-I\-Pv4\-Addr\-::addr (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_i_pv4_addr_ab99e8b05d31fb9607416015cf81f999b}


set/get sock addr 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classduye_1_1_i_pv4_addr_a77b7729840bb165523424441200e39a4}{\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}!addr\-Len@{addr\-Len}}
\index{addr\-Len@{addr\-Len}!duye::IPv4Addr@{duye\-::\-I\-Pv4\-Addr}}
\subsubsection[{addr\-Len}]{\setlength{\rightskip}{0pt plus 5cm}uint16 duye\-::\-I\-Pv4\-Addr\-::addr\-Len (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_i_pv4_addr_a77b7729840bb165523424441200e39a4}


get sock address length 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classduye_1_1_i_pv4_addr_a58e14639d717cd8179aa7083639c70bc}{\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}!set\-Ip@{set\-Ip}}
\index{set\-Ip@{set\-Ip}!duye::IPv4Addr@{duye\-::\-I\-Pv4\-Addr}}
\subsubsection[{set\-Ip}]{\setlength{\rightskip}{0pt plus 5cm}void duye\-::\-I\-Pv4\-Addr\-::set\-Ip (
\begin{DoxyParamCaption}
\item[{const uint32}]{ip}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_i_pv4_addr_a58e14639d717cd8179aa7083639c70bc}


set/get I\-P address 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classduye_1_1_i_pv4_addr_a00163ce7439478b71df415ecc10b0821}{\index{duye\-::\-I\-Pv4\-Addr@{duye\-::\-I\-Pv4\-Addr}!set\-Port@{set\-Port}}
\index{set\-Port@{set\-Port}!duye::IPv4Addr@{duye\-::\-I\-Pv4\-Addr}}
\subsubsection[{set\-Port}]{\setlength{\rightskip}{0pt plus 5cm}void duye\-::\-I\-Pv4\-Addr\-::set\-Port (
\begin{DoxyParamCaption}
\item[{const uint16}]{port}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_i_pv4_addr_a00163ce7439478b71df415ecc10b0821}


set/get port 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__socket_8h}{duye\-\_\-socket.\-h}\end{DoxyCompactItemize}
